package com.core.family.biz.yizhao.domain.po;

import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author honglei
 * @version 1.0
 * @time: 2023-7-13 9:59:33
 * @Description PO对象 一招报价表
 */
@Data
@TableName(value = "yz_order_price")
public class YzOrderPrice implements Serializable {


        /*
        *  报价时间
        */
        @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
        @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
        @TableField(value = "create_time")
        private Date createTime;

        /*
        *
        */
        @TableField(value = "id")
        private Integer id;

        /*
        *  报价人电话
        */

        @NotNull(message = "报价人电话不能为空")
        @TableField(value = "master_hone")
        private String masterHone;

        /*
        *  报价人
        */
        @NotNull(message = "报价人不能为空")
        @TableField(value = "master_name")
        private String masterName;

        /*
        *  人身份
        */
        @NotNull(message = "报价人身份不能为空")
        @TableField(value = "master_rolename")
        private String masterRolename;

        /*
        *  订单id
        */
        @NotNull(message = "订单id不能为空")
        @TableField(value = "order_id")
        private Integer orderId;

        /*
        *  订单项目名称
        */

        @TableField(value = "order_name")
        private String orderName;

        /*
        *  订单所有人id
        */
        @TableField(value = "order_ower_id")
        private Integer orderOwerId;

        /*
        *
        */

        @TableField(value = "orther")
        private String orther;

        /*
        *  总计
        */
        @TableField(value = "price_total")
        private Long priceTotal;

        /*
        *
        */

        @TableField(value = "status")
        private String status;

        /*
        *
        */

        @TableField(value = "type")
        private String type;

        /*
        *  报价人id
        */
        @NotNull(message = "报价人id不能为空")
        @TableField(value = "user_id")
        private Integer userId;

        @TableField(exist = false)
        List<YzPriceItem> itemList;

}
